package com.logistics.product.entity.model;

import com.logistics.pick.entity.domain.PickWorkshop;
import lombok.Data;

@Data
public class CallMaterialRow {

    private String wcName;

    private String deptName;

    private String code;

    private int priority;

    private String lackMaterialStatus;

    private Integer containerCount;

    private Integer pickId;

    private String container;

    public CallMaterialRow(PickWorkshop pickWorkshop){
        this.wcName = pickWorkshop.getWcName();
        this.deptName = pickWorkshop.getDeptName();
        this.code = pickWorkshop.getCode();
        this.priority = pickWorkshop.getPriority();
        this.lackMaterialStatus = pickWorkshop.getLackMaterialStatus();
        this.containerCount = pickWorkshop.getContainerCount();
        this.pickId = pickWorkshop.getPickId();
        this.container = pickWorkshop.getContainer();
    }

    public static CallMaterialRow build(PickWorkshop pickWorkshop){
        return new CallMaterialRow(pickWorkshop);
    }
}
